package com.ophiux.cs.domain.chat.repositories;

import java.util.List;

import com.ophiux.cs.domain.chat.model.entity.CSChatMessageSend;
import com.ophiux.cs.domain.chat.model.entity.CSChatSession;
import com.ophiux.cs.domain.chat.model.valueobj.CSChatMessageQuery;
import com.ophiux.utils.exception.OphiuxRepositoryException;

/**
 * 聊天记录相关存储
 * @author chenh
 *
 */
public interface ICSChatSessionRepository {

	/**
	 * 新增聊天记录
	 * @param model	会话
	 * @throws OphiuxRepositoryException
	 */
	 
	public void save(CSChatSession model) throws OphiuxRepositoryException;
	
	/**
	 * 获取会话
	 * @param user	谁的？
	 * @param who	和谁的？
	 * @return
	 */
	public CSChatSession getCSChatSession(String user , String who)  throws OphiuxRepositoryException;;
	
}
